package com.hdsx.restful.ygzt.hyzzytqy.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.hyzzytqy.bean.Hyzzytqy;
import com.hdsx.restful.ygzt.hyzzytqy.mapper.HyzzytqyMapper;
import com.hdsx.restful.ygzt.hyzzytqy.service.HyzzytqyService;

@Service
public class HyzzytqyServiceImpl extends BaseOpearte<Hyzzytqy> implements HyzzytqyService {
	public HyzzytqyServiceImpl() {
		super("GIS_HYZZYTQY");
	}

	@Resource(name="hyzzytqyMapper")
	private HyzzytqyMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String qymc) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", qymc);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Hyzzytqy> queryList(String xzqhbm, String qymc,int begin,int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name", qymc);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Hyzzytqy> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Hyzzytqy queryById(String id) {
		return mapper.selectById(id);
	}
	
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
